package cn.itsource.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {

    private Integer currentPage = 1;//当前也
    private Integer pageSize = 5;

    private String keyword;

    public Integer getBegin(){ //创建了一个Bean属性   mybaits  mapper.xml    #{begin}
        return (currentPage-1)*pageSize;
    }

}
